libxl: add version_info function
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:39:17 +0000 (09:39 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:39:17 +0000 (09:39 +0100)
commit63e8bcc364fa780d31bb272c383edf83c28aec72
tree2213aba400c8772642a065f696a5124509f56fdb
parent419794de6896184846b0f2dce5f53f7128b7ea68
libxl: add version_info function

Xen provides a xen_version hypercall to query the values of several
interesting things (like hypervisor version, commandline used, actual
changeset, etc.). Create a user-friendly and efficient wrapper around
the libxc function to provide values for xl info output.
Since the information is static during the whole runtime, we store
it within the libxl_ctx structure and just deliver the pointer on
subsequent calls.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h